package org.jeecg.modules.system.entity;

/**
 * @ClassName ProcessStatusEnum
 * @Description TODO
 * @Author shiguang
 * @Date 2023/2/13 11:29
 * @Version 1.0
 */
public enum DbanInfoStatusEnum {

    NOT_AUTH(-1, "未审核"),
    SUBMMIT_AUTH(0, "提交审核"),
    AUTTH_OK(1, "审核通过"),
    AUTH_NO(2, "审核拒绝"),
    RELEASE_SUCCESS(3, "发布成功"),
    BEI_XUAN_KU(900, "发布成功");

    private int value;
    private String displayName;

    DbanInfoStatusEnum(int value, String displayName) {
        this.value = value;
        this.displayName = displayName;
    }

    public static DbanInfoStatusEnum valueOf(int value) {

        for (DbanInfoStatusEnum index : DbanInfoStatusEnum.values()) {
            if (index.value == value) {
                return index;
            }
        }
        throw new IllegalArgumentException(String.format("非法枚举-%d", value));
    }

    public int value() {
        return this.value;
    }

    public String displayName() {
        return this.displayName;
    }
}
